Skip to main content

Delete Banned User

DELETE /admin/:username

Description

Permanently deletes a banned user when the retention and ownership rules are satisfied.

Request Parameters

Requires Authentication: true

Requires Admin Role: true

PATH PARAMS

NameTypeRequiredDescription
usernamestringYesUsername of the banned user.

BODY

NameTypeRequiredDescription
messagestringNoAdditional deletion message sent by email.

Success Response

{
"message": "Banned user deleted successfully"
}

Error Response

CodeDescription
401Missing or invalid access token
402User is not an admin
403User is not banned or cannot be deleted yet
404User or ban history not found
500Server error